import request from '@/utils/request'

// 获取供需分类列表
export function getAssoSupplyTypeList(data) {
  return request({
    url: '/api/zgyf/supply/AssoSupplyType/getList',
    method: 'post',
    data
  })
}

// 新增供需分类
export function addAssoSupplyType(data) {
  return request({
    url: '/api/zgyf/supply/AssoSupplyType',
    method: 'post',
    data
  })
}

// 修改供需分类
export function updateAssoSupplyType(id, data) {
  return request({
    url: `/api/zgyf/supply/AssoSupplyType/${id}`,
    method: 'put',
    data
  })
}

// 删除供需分类
export function delAssoSupplyType(id) {
  return request({
    url: `/api/zgyf/supply/AssoSupplyType/${id}`,
    method: 'delete'
  })
}

// 获取供需分类详情
export function getAssoSupplyType(id) {
  return request({
    url: `/api/zgyf/supply/AssoSupplyType/${id}`,
    method: 'get'
  })
}
